package model

import messageID "broker/struct/common/message_id"

/**
 * @Description
 * @Author huan.wang
 * @Date 2021/4/25 7:06 下午
 **/

var (
	ConnectACK  byte = 0x00
	ProtocolErr byte = 0x01
	ClientIDErr byte = 0x02
	BrokerErr   byte = 0x03
	AuthErr     byte = 0x04
)

type ConnectACKMessage struct {
	*BaseMessage
	ConnACKFlag    byte
	ConnReturnCode byte
}

func NewConnectACKMessage() *ConnectACKMessage {
	return &ConnectACKMessage{
		NewMsgIDBaseMessage(messageID.ConnectACK),
		0,
		0,
	}

}
